how to solve logarithmic equation